草庐IT

android.graphics.drawable.RippleDrawable 错误

全部标签

javascript - RadAjaxManager AjaxRequest 类型错误 : Cannot read property 'id' of undefined

情况是这样的:我有一个加载自定义Web用户控件的主机页面。在我的web控件中,我想使用javascript和RadAjaxManager来加载第二个web用户控件。我使用Telerik的这个例子作为指导:http://demos.telerik.com/aspnet-ajax/ajax/examples/manager/clientsideapi/defaultvb.aspx但是,当我在RadAjaxManager上调用客户端“ajaxRequest”方法时,我不断收到以下错误。TypeError:Cannotreadproperty'id'ofundefined

javascript - 错误数据表不是函数

我正在尝试使用数据表插件,但在调用函数dataTable()时出现错误。我的代码如下所示:@Scripts.Render("~/Scripts/DataTables-1.9.4/media/js/jquery.js")@Scripts.Render("~/Scripts/DataTables-1.9.4/media/js/jquery.dataTables.js")$(function(){$('#tableID').dataTable();});Column1Column2Row1Row1Row2Row2当我运行它时,我可以在Firebug中看到一个错误:TypeError:$(..

javascript - 开始安装 Karma 和 Jasmine - jasmine.Suite() 需要错误

我正在尝试开始使用karma和Jasmine。我已经安装了它们。我相信Karma可以找到我的JavaScript文件。当我运行karmastart时,我的浏览器打开并显示:Karmav0.12.23-connectedIE11.0.0(Windows8.1)isidleFirefox29.0.0(Windows8.1)isidleChrome37.0.2062(Windows8.1)isidle我将一个JavaScript文件添加到我认为Karma正在监视的位置:it('yshouldhavealengthof1',function(){vary='1';expect(y.length

javascript - 输出中出现未定义/NaN 错误

这是我在stackoverflow上的第一篇文章,我在以下代码中遇到错误,在firefox的检查元素/JS控制台中没有显示错误,但由于某种原因计算后的输出显示未定义/NaN错误。来自用户的输入在Float中被解析。代码:functioncosttoShip(){//getinputvarweight=parseFloat(document.getElementById("weight")).value;varmsg;varcost;varsubtotal;//calculationif(weight>=0.00&&weight=151.00&&weight=301.00&&weight

javascript - 如何在 node.js 中使用堆栈跟踪记录错误?

我一直在尝试调试我的Node应用程序以在我的日志中找到错误的来源,该错误仅显示为“错误:发送后无法设置header”,其中没有跟踪信息或任何上下文。碰巧,我想我现在已经解决了这个问题……我正在使用connect-timeout我继续处理传递给异步网络操作的回调,该回调最终会尝试执行res.send(),尽管req.timedout已设置为在网络操作期间connect-timeout为“true”。但我仍然不明白为什么我的日志没有显示此错误的跟踪信息。在我的代码中任何返回错误的地方,我都会将其记录到控制台:console.log(err);如果err对象中有可用的跟踪信息,并且这似乎放在

javascript - 错误 Vue.js "Cannot read property ' props' of undefined"

在gorails上做了所有事情吗?教程,但出了点问题。Chrome中的错误消息:UncaughtTypeError:Cannotreadproperty'props'ofundefinedatnormalizeProps(vue.runtime.esm.js?ff9b:1291)atmergeOptions(vue.runtime.esm.js?ff9b:1363)atmergeOptions(vue.runtime.esm.js?ff9b:1372)atVue$3.Vue._init(vue.runtime.esm.js?ff9b:4268)atnewVue$3(vue.runtim

javascript 错误 { [ native 代码] }

你好,我正在尝试做一些基本的javascript,我得到的是“本地代码”,而不是我想要的:vartoday=newDate();document.write(today+"");//document.write(today.length+"");-wasgetting"undefined"//document.write(today[0]+"");-wasgetting"undefined"document.write(today.getMonth+"");document.write(today.getMonth+"");document.write(today.getFullYea

javascript - 全局搜索时 JavaScript 中的 RegExp 错误

这个问题在这里已经有了答案:WhydoesaRegExpwithglobalflaggivewrongresults?(7个答案)关闭5年前。PossibleDuplicate:Javascriptregexreturningtrue..thenfalse..thentrue..etc首先,为我糟糕的英语道歉。我正在尝试测试字符串以匹配模式,所以我这样写:varstr='test';varpattern=newRegExp('te','gi');//yes,Iknowthatsimple'i'willbegoodforthis但我有这个意想不到的结果:>>>pattern.test(s

javascript - 无法使用带有解析存在 View 模型的 ko.mapping.fromJSON 解析绑定(bind) js 错误

我想以JSON格式将View模型保存在隐藏字段中。一切正常。但是当我尝试获取它时-我得到错误:UncaughtError:Unabletoparsebindings.Message:ReferenceError:selectAllisnotdefined;Bindingsvalue:checked:AllCheck,click:selectAllJsFiddlerView模型functionAppViewModel(){//Weekthis.AllCheck=ko.observable(false);this.DaysOfWeekResult=ko.observableArray();

javascript - getElementsByClassName 产生错误 "undefined"

这个问题在这里已经有了答案:WhatdoquerySelectorAllandgetElementsBy*methodsreturn?(12个答案)关闭8年前。我有几个textboxes类output。我希望能够将它们的值作为纯HTML列表打印在div中,带有IDcombined。现在,我有以下代码:functiondoCombine(){document.getElementById('combined').innerHTML=document.getElementsByClassName('output').value+",";}但是,当我运行该函数时,我收到错误消息undefin